import type {Metadata} from 'next'
import {Inter} from 'next/font/google'
import '@/styles/globals.css'
import Header from "@/components/Header";
import Footer from "@/components/Footer";
import WebsiteConfig from "@/constant/WebsiteConfig";
import Providers from "@/components/Providers";
const inter = Inter({subsets: ['latin']})

export const metadata: Metadata = {
    title: WebsiteConfig.title,
    description: WebsiteConfig.description,
}

export default function RootLayout({
                                       children,
                                   }: {
    children: React.ReactNode
}) {
    return (
        <html lang="zh-CN">
        <body className={inter.className}>
        <Providers>
            <Header/>
            <main className={"min-h-[calc(100vh_-_128px)]"}>
                {children}
            </main>
            <Footer/>
        </Providers>
        </body>
        </html>
    )
}
